package ActionWebService;

public class Hello_messageHelloMessagePortProxy implements ActionWebService.Hello_messageHelloMessagePort {
  private String _endpoint = null;
  private ActionWebService.Hello_messageHelloMessagePort hello_messageHelloMessagePort = null;
  
  public Hello_messageHelloMessagePortProxy() {
    _initHello_messageHelloMessagePortProxy();
  }
  
  public Hello_messageHelloMessagePortProxy(String endpoint) {
    _endpoint = endpoint;
    _initHello_messageHelloMessagePortProxy();
  }
  
  private void _initHello_messageHelloMessagePortProxy() {
    try {
      hello_messageHelloMessagePort = (new ActionWebService.Hello_messageServiceLocator()).gethello_messageHelloMessagePort();
      if (hello_messageHelloMessagePort != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)hello_messageHelloMessagePort)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)hello_messageHelloMessagePort)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (hello_messageHelloMessagePort != null)
      ((javax.xml.rpc.Stub)hello_messageHelloMessagePort)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public ActionWebService.Hello_messageHelloMessagePort getHello_messageHelloMessagePort() {
    if (hello_messageHelloMessagePort == null)
      _initHello_messageHelloMessagePortProxy();
    return hello_messageHelloMessagePort;
  }
  
  public java.lang.String helloMessage(java.lang.String token, java.lang.String destinatarios, java.lang.String template_id, java.lang.String fields) throws java.rmi.RemoteException{
    if (hello_messageHelloMessagePort == null)
      _initHello_messageHelloMessagePortProxy();
    return hello_messageHelloMessagePort.helloMessage(token, destinatarios, template_id, fields);
  }
  
  
}